Graph Theory: Nearest Neighbor Algorithm